#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <cstdio>
#include <cstdlib>
#include <unistd.h>
#include <fcntl.h>
#include <cstring>
#define FIFO_NAME "myfifo"
#define MODE 0664
#define SIZE 1024